package com.hotel.service.Impl;

import com.hotel.dao.OrderDao;
import com.hotel.dao.OrderDetailDao;
import com.hotel.factory.BeanFactory;
import com.hotel.service.OrderService;

import java.util.List;
import java.util.Map;

/**
 * Created by LinYaTing on 2018/11/28 0:51
 */
public class OrderServiceImpl implements OrderService {

    private OrderDao orderDao = BeanFactory.getInstance("orderDao", OrderDao.class);

    @Override
    public List<Map<String, Object>> findAll() {
        List<Map<String, Object>> orderList = orderDao.findAll();
        return orderList;
    }
}
